<?php

class companyProduct extends common {

    private $table_name ="company_product";

    function getProductList($param) {
        extract($param);
        
        $sql = $this->table_name."  where company_id = '".$companyid."' ";
        $key = " img_0,name,id as product_id, price";
        $result =  $this->getList($sql, $key, $num, $page);
        return $result;
    }
    
    function getProductInfo($param) {
        extract($param);
        
        $sql = $this->table_name." where id = '".$product_id."' ";
        $key = " * ";
        $result =  $this->getList($sql, $key, $num, $page);
        return $result;
    }
    
    

}
